#ifndef __wl_typedef_h__
#define __wl_typedef_h__

/* FreeRTOS头文件 */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"

/*-----------------------------------------------------------*/
// 宏定义
typedef void(*vvFunc)(void);								//
typedef void(*vcFunc)(void);								//
typedef void(*CharFunc)(unsigned char Dat);					//


// 关键字 
#define u64                                 uint64_t
#define u32                                 uint32_t  
#define u16                                 uint16_t  
#define u8                                  uint8_t   

#define u8_pt                               u8*

				
#define vu64                                volatile uint64_t  
#define vu32                                volatile uint32_t  
#define vu16                                volatile uint16_t  
#define vu8                                 volatile uint8_t   
                
#define OK                                  0
                
#define OFF                                 0
#define ON                                  1


//内存管理
#define mem_get_free() xPortGetFreeHeapSize()           //eg int vfree = mem_get_free();
#define mem_alloc(size_bytes) pvPortMalloc(size_bytes)  //eg. u8* buf = (u8*)mem_alloc(100);
#define mem_free(pv) vPortFree(pv)                      //eg. mem_free(buf);




#endif
